from config.config import Config


def test_casdoor_sdk():
    # 初始化 CasdoorSDK
    casdoor_sdk = Config.CASDOOR_SDK

    # 测试 SDK 的方法，例如获取用户信息、获取角色信息等
    user_info = casdoor_sdk.get_user_info("user@example.com")
    assert user_info is not None

    role_info = casdoor_sdk.get_role_info("admin")
    assert role_info is not None

    # 添加更多测试...
